<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
  <c:out value="${str }" default="123456"/> 
  <br>
  <c:out value="${str1 }" default="123456"/> 
  <br>
  <c:set var="var1" value="这里是值"/>
  <c:out value="${var1 }"/> 
  <br>
  <c:remove var="var1"/>
  <c:out value="${var1 }" default="已被移除"/> 
  <br><br>
  <c:out value="${num1 }"/> 
  <br>
  <c:out value="${num2 }"/> 
  <br>
  <c:if test="${num1 gt num2 }"> 
  num1 > num2 
  </c:if>
  <br>
  <c:if test="${num1 lt num2 }"> 
  num1 < num2 
  </c:if>
  <br>
  <c:if test="${empty v1}"> 
  v1 是空的
  </c:if>
  <br>
  <c:if test="${empty v2}"> 
  v2 是空的
  </c:if>
  <br><br>
  <c:choose>     
		    <c:when test="${num1 gt num2 }">               
		       num1 大于 num2          
			</c:when> 
			<c:when test="${num1 == num2 }">               
		       num1 等于 num2          
			</c:when>        
		    <c:otherwise>         
		      num1 小于 num2
		    </c:otherwise> 
  </c:choose>
  <br><br>
   
  <br>
  <br>
</body>
</html>